package com.mysiteforme.admin.entity.publish;

import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import com.mysiteforme.admin.base.DataEntity;

/**
 * <p>
 * 订单表
 * </p>
 *
 * @author wangl
 * @since 2019-09-18
 */
@TableName("electricity_order")
public class ElectricityOrder extends DataEntity<ElectricityOrder> {

    private static final long serialVersionUID = 1L;

    /**
     * 卖方用户id
     */
	@TableField("buy_id")
	private String buyId;
    /**
     * 买方公司名称
     */
	@TableField("buy_company")
	private String buyCompany;
    /**
     * 卖方用户id
     */
	@TableField("sell_id")
	private String sellId;
    /**
     * 卖方公司名称
     */
	@TableField("sell_company")
	private String sellCompany;
    /**
     * 订单编号
     */
	@TableField("trade_no")
	private String tradeNo;
    /**
     * 供需信息id
     */
	@TableField("supply_id")
	private String supplyId;
    /**
     * 交易类型
     */
	@TableField("business_type")
	private String businessType;
    /**
     * 淘电品种
     */
	@TableField("amoy_type")
	private String amoyType;
    /**
     * 淘电量(MWh)
     */
	@TableField("amoy_value")
	private BigDecimal amoyValue;
    /**
     * 淘电价(元/MWh)
     */
	@TableField("amoy_price")
	private BigDecimal amoyPrice;
    /**
     * 交易时间
     */
	@TableField("order_time")
	private Date orderTime;
    /**
     * 订单状态
     */
	@TableField("order_statu")
	private String orderStatu;

	public String getBuyId() {
		return buyId;
	}

	public void setBuyId(String buyId) {
		this.buyId = buyId;
	}
	public String getBuyCompany() {
		return buyCompany;
	}

	public void setBuyCompany(String buyCompany) {
		this.buyCompany = buyCompany;
	}
	public String getSellId() {
		return sellId;
	}

	public void setSellId(String sellId) {
		this.sellId = sellId;
	}
	public String getSellCompany() {
		return sellCompany;
	}

	public void setSellCompany(String sellCompany) {
		this.sellCompany = sellCompany;
	}
	public String getTradeNo() {
		return tradeNo;
	}

	public void setTradeNo(String tradeNo) {
		this.tradeNo = tradeNo;
	}
	public String getSupplyId() {
		return supplyId;
	}

	public void setSupplyId(String supplyId) {
		this.supplyId = supplyId;
	}
	public String getBusinessType() {
		return businessType;
	}

	public void setBusinessType(String businessType) {
		this.businessType = businessType;
	}
	public String getAmoyType() {
		return amoyType;
	}

	public void setAmoyType(String amoyType) {
		this.amoyType = amoyType;
	}
	public BigDecimal getAmoyValue() {
		return amoyValue;
	}

	public void setAmoyValue(BigDecimal amoyValue) {
		this.amoyValue = amoyValue;
	}
	public BigDecimal getAmoyPrice() {
		return amoyPrice;
	}

	public void setAmoyPrice(BigDecimal amoyPrice) {
		this.amoyPrice = amoyPrice;
	}
	public Date getOrderTime() {
		return orderTime;
	}

	public void setOrderTime(Date orderTime) {
		this.orderTime = orderTime;
	}
	public String getOrderStatu() {
		return orderStatu;
	}

	public void setOrderStatu(String orderStatu) {
		this.orderStatu = orderStatu;
	}


	@Override
	public String toString() {
		return "ElectricityOrder{" +
			", buyId=" + buyId +
			", buyCompany=" + buyCompany +
			", sellId=" + sellId +
			", sellCompany=" + sellCompany +
			", tradeNo=" + tradeNo +
			", supplyId=" + supplyId +
			", businessType=" + businessType +
			", amoyType=" + amoyType +
			", amoyValue=" + amoyValue +
			", amoyPrice=" + amoyPrice +
			", orderTime=" + orderTime +
			", orderStatu=" + orderStatu +
			"}";
	}

	@TableField(exist = false)
	private String buyMemberType;
	@TableField(exist = false)
	private String sellMemberType;
}
